package com.binyouwei.designpatterns.behavior.visitor;

import java.awt.Shape;

/**
 * @author 宾有为
 * Created on 2024/7/15 22:38
 * Social homepage: https://blog.csdn.net/baidu_41616022
 * @desc
 **/
public class VisitorCircle implements VisitorShape {
    private double radius;

    public VisitorCircle(double radius) {
        this.radius = radius;
    }

    @Override
    public void accept(VisitorShapeVisitor visitor) {
        visitor.visit(this);
    }

    public double getRadius() {
        return radius;
    }
}
